gtk4.git
11 years agowin32: Set the right source device
Matthias Clasen [Fri, 15 Aug 2014 17:04:57 +0000 (13:04 -0400)]
win32: Set the right source device

https://bugzilla.gnome.org/show_bug.cgi?id=734738

11 years agoDeprecate GtkStatusIcon
Matthias Clasen [Thu, 14 Aug 2014 18:34:53 +0000 (14:34 -0400)]
Deprecate GtkStatusIcon

GtkStatusIcon is using a problematic, XEmbed-based protocol under X,
and we want to get rid of it eventually. Document our intentions by
marking GtkStatusIcon as deprecated.

https://bugzilla.gnome.org/show_bug.cgi?id=734826

11 years agoutil/extract-strings: Use autotools syntax for building
Rico Tzschichholz [Fri, 15 Aug 2014 15:56:39 +0000 (17:56 +0200)]
util/extract-strings: Use autotools syntax for building

Always refer to it as "extract-strings$(EXEEXT)" where needed to take
cross-compilation into account.

https://bugzilla.gnome.org/show_bug.cgi?id=731013

11 years agoRevert "Bug 731013 - cross-compilation broken when building extract-strings"
Rico Tzschichholz [Fri, 15 Aug 2014 15:40:55 +0000 (17:40 +0200)]
Revert "Bug 731013 - cross-compilation broken when building extract-strings"

This reverts commit 651d9e90e715ba0f4e246d03102cfb5353c19dc6.

The commit broke 'make dist' - the extract-strings sources are no
longer included in the tarball.

11 years agoUpdates for 3.13.7
Matthias Clasen [Fri, 15 Aug 2014 13:14:20 +0000 (09:14 -0400)]
Updates for 3.13.7

11 years agoGtkMenuItemAccessible: use "insert" signal
Ryan Lortie [Fri, 4 May 2012 00:12:32 +0000 (17:12 -0700)]
GtkMenuItemAccessible: use "insert" signal

Use the "insert" rather than the "add" signal to reliably detect
additions of menu items.

https://bugzilla.gnome.org/show_bug.cgi?id=372545

11 years agotreeview: Make multipress gesture accept all buttons
Carlos Garnacho [Tue, 12 Aug 2014 12:06:04 +0000 (14:06 +0200)]
treeview: Make multipress gesture accept all buttons

That gesture is meant to handle clicks on multiple buttons, so unset
the GDK_BUTTON_PRIMARY default. Also, remove unnecessary boilerplate
with the new GtkGestureSingle/GtkEventController defaults.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agotextview: Make multipress gesture accept all buttons
Carlos Garnacho [Tue, 12 Aug 2014 12:04:35 +0000 (14:04 +0200)]
textview: Make multipress gesture accept all buttons

That gesture is meant to handle clicks on multiple buttons, so unset
the GDK_BUTTON_PRIMARY default. Also, remove unnecessary boilerplate
with the new GtkGestureSingle/GtkEventController defaults.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agorange: Make multipress gesture accept all buttons
Carlos Garnacho [Tue, 12 Aug 2014 12:02:24 +0000 (14:02 +0200)]
range: Make multipress gesture accept all buttons

That gesture is meant to handle clicks from several buttons, so unset
the new GDK_BUTTON_PRIMARY default. Also, remove unnecessary boilerplate
with the new default values.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agowindow: Set GtkGestureSingle::button to 0 on multipress gesture
Carlos Garnacho [Mon, 11 Aug 2014 19:57:04 +0000 (21:57 +0200)]
window: Set GtkGestureSingle::button to 0 on multipress gesture

This gesture handles events from multiple buttons, so ensure the
gesture still does so after the default value change.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agoscrolledwindow: Make kinetic scrolling only work on touch devices
Carlos Garnacho [Mon, 11 Aug 2014 19:56:12 +0000 (21:56 +0200)]
scrolledwindow: Make kinetic scrolling only work on touch devices

This code was relying on the previous GtkGestureSingle::touch-only default
value, so restore the behavior back.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agospinbutton: Make the swipe gesture only work on touch devices
Carlos Garnacho [Mon, 11 Aug 2014 19:54:39 +0000 (21:54 +0200)]
spinbutton: Make the swipe gesture only work on touch devices

This code was relying on the previous GtkGestureSingle::touch-only default
value.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agolabel: Update to new GtkGestureSingle/GtkEventController defaults
Carlos Garnacho [Mon, 11 Aug 2014 19:52:59 +0000 (21:52 +0200)]
label: Update to new GtkGestureSingle/GtkEventController defaults

GtkGestureSingle::button is set to 0 on the multipress gesture, as several
buttons are managed by that gesture. Also avoid some extra lines of code
setting what nowadays are default values.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agoentry: Update to new GtkGestureSingle/GtkEventController defaults
Carlos Garnacho [Mon, 11 Aug 2014 19:51:50 +0000 (21:51 +0200)]
entry: Update to new GtkGestureSingle/GtkEventController defaults

GtkGestureSingle::button is set to 0 on the drag/multipress gestures, as several
buttons are managed by these gestures. Also, avoid some extra lines of code
setting what nowadays are default values.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agodnd: Set explicitly GtkGestureSingle::button to 0 on the drag gesture
Carlos Garnacho [Mon, 11 Aug 2014 19:50:15 +0000 (21:50 +0200)]
dnd: Set explicitly GtkGestureSingle::button to 0 on the drag gesture

This gesture handles drags done with any button, so unset the current button=1
default.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agocolorswatch: Update to new GtkGestureSingle/GtkEventController defaults
Carlos Garnacho [Mon, 11 Aug 2014 19:48:43 +0000 (21:48 +0200)]
colorswatch: Update to new GtkGestureSingle/GtkEventController defaults

GtkGestureSingle::button is set to 0 on the multipress gesture, as several
buttons are managed by that gesture. Also avoid some extra lines of code
setting what nowadays are default values.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agocolorplane: Update to new GtkGestureSingle/GtkEventController defaults
Carlos Garnacho [Mon, 11 Aug 2014 19:45:51 +0000 (21:45 +0200)]
colorplane: Update to new GtkGestureSingle/GtkEventController defaults

GtkGestureSingle::button is set to 0, as multiple buttons are managed by
the same gesture. Also avoid some extra lines of code setting what nowadays
are default values.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agogesturesingle: Change default values of button and touch-only properties
Carlos Garnacho [Mon, 11 Aug 2014 19:43:58 +0000 (21:43 +0200)]
gesturesingle: Change default values of button and touch-only properties

This now defaults to sane values on mice, so touch-only is set to FALSE,
and button is set to GDK_BUTTON_PRIMARY;

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agowindow: Set multipress gesture phase to be GTK_PHASE_NONE explicitly
Carlos Garnacho [Mon, 11 Aug 2014 18:43:17 +0000 (20:43 +0200)]
window: Set multipress gesture phase to be GTK_PHASE_NONE explicitly

This used to rely on the default value, which has changed to a saner default.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agodnd: Set drag gesture propagation phase to GTK_PHASE_NONE explicitly
Carlos Garnacho [Mon, 11 Aug 2014 18:41:44 +0000 (20:41 +0200)]
dnd: Set drag gesture propagation phase to GTK_PHASE_NONE explicitly

This used to rely on the default phase value.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agoeventcontroller: Default to GTK_PHASE_BUBBLE
Carlos Garnacho [Mon, 11 Aug 2014 18:38:51 +0000 (20:38 +0200)]
eventcontroller: Default to GTK_PHASE_BUBBLE

This is in practice the most common value, so make that the default

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agoDrop another unused bit of configury
Matthias Clasen [Fri, 15 Aug 2014 01:33:21 +0000 (21:33 -0400)]
Drop another unused bit of configury

pwd.h is not used anywhere in GTK+, so no need to check
for it.

11 years agoDrop unused variable
Matthias Clasen [Fri, 15 Aug 2014 01:21:32 +0000 (21:21 -0400)]
Drop unused variable

Nothing is using gdk-pixbuf-csource anymore, so no need
to set up the GDK_PIXBUF_CSOURCE variable.

11 years agoFixed some object leaks in broadway_server_new() constructor.
Domenico Tortorella [Thu, 14 Aug 2014 11:08:10 +0000 (13:08 +0200)]
Fixed some object leaks in broadway_server_new() constructor.

https://bugzilla.gnome.org/show_bug.cgi?id=734778

11 years agoBroadway: Make unix socket support conditional
Matthias Clasen [Fri, 15 Aug 2014 00:29:54 +0000 (20:29 -0400)]
Broadway: Make unix socket support conditional

We need to use gio/gunixsocketaddress.h and do so
only if HAVE_GIO_UNIX is defined.

11 years agoBroadwayServer support for unix socket listening
Domenico Tortorella [Thu, 14 Aug 2014 11:30:00 +0000 (13:30 +0200)]
BroadwayServer support for unix socket listening

At the present time broadway listens only for TCP/IP incoming
display connections. This patch implements the support for listening
on unix domain sockets too, adding the broadway_server_on_unix_socket_new()
constructor and the commandline option --unixsocket [path] to broadwayd.

https://bugzilla.gnome.org/show_bug.cgi?id=734420

11 years agoAdapt to spinbutton changes
Matthias Clasen [Thu, 14 Aug 2014 23:38:14 +0000 (19:38 -0400)]
Adapt to spinbutton changes

11 years agotests: Sanitize
Benjamin Otte [Thu, 14 Aug 2014 22:11:35 +0000 (00:11 +0200)]
tests: Sanitize

gcc was unhappy again.

11 years agoUpdated POTFILES.skip
Piotr Drąg [Thu, 14 Aug 2014 18:41:54 +0000 (20:41 +0200)]
Updated POTFILES.skip

11 years agoreftests: Add reftest for statusbar fix
Benjamin Otte [Thu, 14 Aug 2014 17:52:33 +0000 (19:52 +0200)]
reftests: Add reftest for statusbar fix

https://bugzilla.gnome.org/show_bug.cgi?id=724281

11 years agoStatusbar: Remove matching messages before popping
Phillip Wood [Wed, 12 Feb 2014 15:56:11 +0000 (15:56 +0000)]
Statusbar: Remove matching messages before popping

gtk_statusbar_remove_all() was popping the top message if its
context_id matched before removing other matching messages from the
stack. This meant that if the context_id of the second top message
matched it was still displayed when the top message was popped and
then removed from the list of messages without updating the display.
Fix this by removing all the matching messages below the top one
before popping it if it matches.

https://bugzilla.gnome.org/show_bug.cgi?id=724281

11 years agoreftests: Make gcc happy
Benjamin Otte [Thu, 14 Aug 2014 17:08:37 +0000 (19:08 +0200)]
reftests: Make gcc happy

11 years agoGtkListBoxRow: Set clip
Timm Bäder [Wed, 13 Aug 2014 09:32:47 +0000 (11:32 +0200)]
GtkListBoxRow: Set clip

https://bugzilla.gnome.org/show_bug.cgi?id=734709

11 years agoFix a thinko in creating event masks
Matthias Clasen [Thu, 14 Aug 2014 04:10:23 +0000 (00:10 -0400)]
Fix a thinko in creating event masks

&-ing together all the device event types yields zero,
which is clearly not the intention here. Use | instead,
to create the intended mask.

https://bugzilla.gnome.org/show_bug.cgi?id=734641

11 years agoAdd some spinbutton tests
Matthias Clasen [Thu, 14 Aug 2014 04:04:10 +0000 (00:04 -0400)]
Add some spinbutton tests

These tests check some of the changes from the previous commits.

11 years agoGtkSpinButton: Prevent public API from unsetting the adjustment
Debarshi Ray [Tue, 12 Aug 2014 15:45:53 +0000 (17:45 +0200)]
GtkSpinButton: Prevent public API from unsetting the adjustment

A spin button really needs an adjustment to work. So don't let the
user unset the adjustment by passing NULL to
gtk_spin_button_set_adjustment.

https://bugzilla.gnome.org/show_bug.cgi?id=734660

11 years agoGtkSpinButton: Always emit value-changed when the adjustment is changed
Debarshi Ray [Tue, 12 Aug 2014 11:44:34 +0000 (13:44 +0200)]
GtkSpinButton: Always emit value-changed when the adjustment is changed

Changing adjustment via the property setter would not emit
value-changed, however changing it via gtk_spin_button_configure would.

This inconsistency had the following side-effects:

  - Setting an adjustment with a different value would not update the
    value shown by the spin button.

  - Creating a spin button like this (common in GtkBuilder XML) will
    not show the initial value:
      g_object_new (GTK_TYPE_SPIN_BUTTON, "adjustment", adj, NULL);

Let's use the same code path (ie. gtk_spin_button_configure) for all
public facing API for setting adjustment. The code that handled the
details of swapping out the old adjustment with the new has been split
into an unset_adjustment method and the rest has been folded into
gtk_spin_button_configure.

A spin button really needs an adjustment to work, so we don't need
most of the NULL checks. However we do need to check in
unset_adjustment because setting a new adjustment during object
creation might try to unset a non-existent one.

https://bugzilla.gnome.org/show_bug.cgi?id=734660

11 years agoFix various warnings
Руслан Ижбулатов [Wed, 13 Aug 2014 18:43:51 +0000 (18:43 +0000)]
Fix various warnings

https://bugzilla.gnome.org/show_bug.cgi?id=734737

11 years agoFix some print format warnings
Руслан Ижбулатов [Wed, 13 Aug 2014 18:17:23 +0000 (18:17 +0000)]
Fix some print format warnings

https://bugzilla.gnome.org/show_bug.cgi?id=734736

11 years agoFix various warnings about unused things
Руслан Ижбулатов [Wed, 13 Aug 2014 15:51:43 +0000 (15:51 +0000)]
Fix various warnings about unused things

https://bugzilla.gnome.org/show_bug.cgi?id=734735

11 years agogdkwayland-window: Don't map the grab transfer menu for GtkMenu
Jasper St. Pierre [Wed, 13 Aug 2014 23:01:52 +0000 (19:01 -0400)]
gdkwayland-window: Don't map the grab transfer menu for GtkMenu

This is a bad idea in general, but it also means that the focus for a
window drops when we pop up a menu, since the grab transfer menu exists.

11 years agoUpdated Greek translation
Tom Tryfonidis [Wed, 13 Aug 2014 21:45:34 +0000 (21:45 +0000)]
Updated Greek translation

11 years agoFix the build of the native gtk-update-icon-cache when cross-compiling.
Jehan [Wed, 13 Aug 2014 07:11:23 +0000 (07:11 +0000)]
Fix the build of the native gtk-update-icon-cache when cross-compiling.

As a noinst_PROGRAMS, the libtool generated for cross-compiling will be
used, which will mess up the linking. Create a all-local target instead.
Also ensure that building uses always a native version of the tool by
specifying a GTK_UPDATE_ICON_CACHE automake variable.
Finally "config.h" has been created to work for the target platform and
causes problem when cross-compiling. So we temporarily generate a basic
config.h which contains only the strict minimum.

11 years agoBug 731013 - cross-compilation broken when building extract-strings
Jehan [Wed, 13 Aug 2014 05:08:08 +0000 (05:08 +0000)]
Bug 731013 - cross-compilation broken when building extract-strings

It is actually a bad idea to use noinst_PROGRAMS for build tools,
because it adds a $(EXEEXT). It is best to override the all target
with all-local to trigger the tool build.

11 years agoplaces-sidebar: Refine the spacing
Yosef Or Boczko [Wed, 13 Aug 2014 12:24:44 +0000 (15:24 +0300)]
places-sidebar: Refine the spacing

Based on a patch by Yosef Or Boczko,
https://bugzilla.gnome.org/show_bug.cgi?id=731443

11 years agoAdwaita: check/radio icon source override fix
Lapo Calamandrei [Wed, 13 Aug 2014 16:44:17 +0000 (18:44 +0200)]
Adwaita: check/radio icon source override fix

11 years agoAdwaita: app-notification revert erroneusly committed changes
Lapo Calamandrei [Wed, 13 Aug 2014 15:28:55 +0000 (17:28 +0200)]
Adwaita: app-notification revert erroneusly committed changes

11 years agoAdwaita: Use -gtk-icon-source for checkmarks
Benjamin Otte [Thu, 7 Aug 2014 13:42:42 +0000 (15:42 +0200)]
Adwaita: Use -gtk-icon-source for checkmarks

instead of using background-image

11 years agocss: Match state in siblings properly
Benjamin Otte [Wed, 13 Aug 2014 14:18:39 +0000 (16:18 +0200)]
css: Match state in siblings properly

Previously, we always returned the state flags of the original widget
and did not consider the siblings' pseudoclasses.

Testcase is attached.

11 years agowidgetpath: Use CSS-like syntax in to_string()
Benjamin Otte [Wed, 13 Aug 2014 14:18:04 +0000 (16:18 +0200)]
widgetpath: Use CSS-like syntax in to_string()

Print pseudo-classes using ':' sign.

11 years agoAdwaita: path-bar home button spacing
Lapo Calamandrei [Wed, 13 Aug 2014 14:41:36 +0000 (16:41 +0200)]
Adwaita: path-bar home button spacing

11 years agoAdwaita: saner backdrop switch for the dark variant
Lapo Calamandrei [Wed, 13 Aug 2014 14:36:15 +0000 (16:36 +0200)]
Adwaita: saner backdrop switch for the dark variant

11 years agoAdwaita: saner menubar
Lapo Calamandrei [Wed, 13 Aug 2014 14:19:14 +0000 (16:19 +0200)]
Adwaita: saner menubar

11 years agoGtkPathBar: Don't hardcode spacing in buttons
Matthias Clasen [Wed, 13 Aug 2014 13:31:34 +0000 (09:31 -0400)]
GtkPathBar: Don't hardcode spacing in buttons

The theme will be changed to provide padding.

11 years agoGtkPathBar: Make recoloring symbolics work
Matthias Clasen [Wed, 13 Aug 2014 13:29:40 +0000 (09:29 -0400)]
GtkPathBar: Make recoloring symbolics work

We were only recreating the icons the very first time the theme
changed, and not every time as was intended.

11 years agowidget-factory: Avoid a compiler warning
Matthias Clasen [Wed, 13 Aug 2014 13:19:09 +0000 (09:19 -0400)]
widget-factory: Avoid a compiler warning

This is adjusting to the draw_layer signature change.

11 years agowidget-factory: Add a missing style class
Matthias Clasen [Wed, 13 Aug 2014 13:16:09 +0000 (09:16 -0400)]
widget-factory: Add a missing style class

Unfortunately, constructing image-only buttons by just adding
the image as a child does not give us the image-button style
class. Add it manually.

11 years agoGtkTextView: Preserve the cairo context around draw_layer
Matthias Clasen [Wed, 13 Aug 2014 13:14:22 +0000 (09:14 -0400)]
GtkTextView: Preserve the cairo context around draw_layer

Otherwise, draw_layer might unintentionally wreak havoc on the
regular drawing that happens between the two draw_layer calls.

11 years agoGtkTextView: Change draw_layer signature
Matthias Clasen [Wed, 13 Aug 2014 13:09:22 +0000 (09:09 -0400)]
GtkTextView: Change draw_layer signature

Vfuncs should really take 'this' of the right type - the type
that the vfunc is added in.

11 years agoAdwaita: widget edge for inline toolbars
Lapo Calamandrei [Wed, 13 Aug 2014 12:27:31 +0000 (14:27 +0200)]
Adwaita: widget edge for inline toolbars

11 years agowidget-factory: Don't say 'Etched out' twice
Matthias Clasen [Wed, 13 Aug 2014 02:21:08 +0000 (22:21 -0400)]
widget-factory: Don't say 'Etched out' twice

There's no difference between these shadow types anymore, but
it is irritating to see the same label twice.

11 years agowidget-factory: Improve the flow box example
Matthias Clasen [Wed, 13 Aug 2014 02:14:21 +0000 (22:14 -0400)]
widget-factory: Improve the flow box example

Make the selection actually do something. This is also an opportunity
to test the new draw-layer vfunc in GtkTextView.

11 years agowidget-factory: Add a flowbox example
Matthias Clasen [Wed, 13 Aug 2014 00:22:14 +0000 (20:22 -0400)]
widget-factory: Add a flowbox example

This is now really polished yet, but will let us work towards
'responsive grid'.

11 years agowidget-factory: Make dialogs non-resizable
Matthias Clasen [Tue, 12 Aug 2014 23:10:47 +0000 (19:10 -0400)]
widget-factory: Make dialogs non-resizable

They have no reason to be.

11 years agowidget-factory: Don't use rules-hint
Matthias Clasen [Tue, 12 Aug 2014 23:06:43 +0000 (19:06 -0400)]
widget-factory: Don't use rules-hint

11 years agowayland: Initialize cursor cache earlier
Matthias Clasen [Tue, 12 Aug 2014 17:41:56 +0000 (13:41 -0400)]
wayland: Initialize cursor cache earlier

Without this, I was getting a crash because the theme change
function was trying to iterate over the hash table before
it was created.

11 years agoFix symbolic-icon-translucent-color reftest
Alexander Larsson [Tue, 12 Aug 2014 13:43:48 +0000 (15:43 +0200)]
Fix symbolic-icon-translucent-color reftest

When using the pre-rendered png symbolics it seems that we're off a
tiny bit in a few of the pixels on the antialiased borders of a
stroke. To fix this we switch the icon to media-playback-stop-symbolic
which has no such antialiased borders.

I don't quite understand why the pixels are off, this needs more
research.

https://bugzilla.gnome.org/show_bug.cgi?id=734668

11 years agoChange way alpha is used when recoloring symbolics
Alexander Larsson [Tue, 12 Aug 2014 07:17:59 +0000 (09:17 +0200)]
Change way alpha is used when recoloring symbolics

If the foreground color has an alpha != 1 we used to just pass that into
the svg. This is useful to e.g. render an insensitive icon. However,
that is not an ideal model for symbolics. For instance, if the icon uses
overlapping areas when drawing, expecting these to be opaque then the
transparent color will result in a different alpha value for the overlapping
area. Also, non-foreground symbolic colors are still rendered opaque, and
the recoloring of pngs can't handle transparent colors.

So, instead we extract any alpha from the foreground, render using the
opaque colors and then apply the foreground alpha to the entire result.
This means we get an even transparency, even for other colors, and we
can apply alpha for the pngs too.

https://bugzilla.gnome.org/show_bug.cgi?id=734668

11 years agoGtkIconHelper: Short circuit _gtk_icon_helper_get_size in some cases
Alexander Larsson [Tue, 12 Aug 2014 10:34:12 +0000 (12:34 +0200)]
GtkIconHelper: Short circuit _gtk_icon_helper_get_size in some cases

_gtk_icon_helper_get_size() is often used during size request and may
not necessary mean that the icon will be displayed immediately. In
many common cases we know the size without having to ensure a surface.
In many cases this means we can avoid loading an icon until needed, and
in the case of stateless IconHelpers such as GtkCellRendererPixbuf this
is very important as otherwise it will constantly be reloading icons
if the displayed set is larger than the in-memory icon cache.

https://bugzilla.gnome.org/show_bug.cgi?id=734651

11 years agostack: Ensure the bin window has an evmask suitable to windowless children
Carlos Garnacho [Mon, 11 Aug 2014 14:49:46 +0000 (16:49 +0200)]
stack: Ensure the bin window has an evmask suitable to windowless children

If a child has set_has_window == FALSE, it purely relies on the events set on
the parent window, for which the bin window used to just ensure the exposure
mask, eating all input events.

https://bugzilla.gnome.org/show_bug.cgi?id=734357

11 years agowidget: Include event controllers' event mask on gtk_widget_get_events()
Carlos Garnacho [Mon, 11 Aug 2014 14:44:51 +0000 (16:44 +0200)]
widget: Include event controllers' event mask on gtk_widget_get_events()

gtk_widget_get_events() must indeed tell about events enabled purely through
a GtkEventController, those events will most surely trigger event handlers.

https://bugzilla.gnome.org/show_bug.cgi?id=734357

11 years agoGtkSpinButton: Only notify 'adjustment' if the property changed
Debarshi Ray [Tue, 12 Aug 2014 09:54:29 +0000 (11:54 +0200)]
GtkSpinButton: Only notify 'adjustment' if the property changed

https://bugzilla.gnome.org/show_bug.cgi?id=734649

11 years agowidget-factory: Add a reset button to the notification
Debarshi Ray [Mon, 11 Aug 2014 21:14:34 +0000 (23:14 +0200)]
widget-factory: Add a reset button to the notification

Change the initial value to something that is not a multiple of 3, so
that dismissing the notification on reset makes sense. Let's use 50
because that is already being used elsewhere.

https://bugzilla.gnome.org/show_bug.cgi?id=734614

11 years agowidget-factory: Turn off focus-on-click for notification close button
Debarshi Ray [Mon, 11 Aug 2014 20:44:37 +0000 (22:44 +0200)]
widget-factory: Turn off focus-on-click for notification close button

... because that is what most applications are doing. So lets do the
same thing for the sake of consistency and setting a good example.

https://bugzilla.gnome.org/show_bug.cgi?id=734614

11 years agoReconstruct a missing file
Matthias Clasen [Mon, 11 Aug 2014 20:23:41 +0000 (16:23 -0400)]
Reconstruct a missing file

Sadly I had forgotten to add selectionmode.ui to git.
Here is a reconstructed version that seems to work.

11 years agotreeview: Check the selected node active flag before maybe starting rubberband
Carlos Garnacho [Mon, 11 Aug 2014 16:02:12 +0000 (18:02 +0200)]
treeview: Check the selected node active flag before maybe starting rubberband

This check used to be present in the pre-gestures code, but was unintentionally
removed when splitting code into drag/multiclick gestures. The policy used to
be that if clicking happened on an already selected node, DnD would happen
instead of rubberband selection, so this behavior is resuscitated.

https://bugzilla.gnome.org/show_bug.cgi?id=734143

11 years agoBump version
Matthias Clasen [Sun, 10 Aug 2014 23:16:33 +0000 (19:16 -0400)]
Bump version

11 years ago3.13.6
Matthias Clasen [Sun, 10 Aug 2014 12:00:42 +0000 (08:00 -0400)]
3.13.6

11 years agoFix reftests for builddir != srcdir
Matthias Clasen [Sun, 10 Aug 2014 23:05:50 +0000 (19:05 -0400)]
Fix reftests for builddir != srcdir

Make gtk-reftest consult the REFTEST_MODULE_DIR environment
variable to find out where to look for modules, and fix the
libtool hack to construct the .libs subdirectory correctly.

11 years agoUpdate DISTCHECK_CONFIGURE_ARGS
Matthias Clasen [Sun, 10 Aug 2014 19:20:51 +0000 (15:20 -0400)]
Update DISTCHECK_CONFIGURE_ARGS

The --disable-rebuilds option does not exist anymore, so remove
it. At the same time, add --enable-installed-tests.

11 years agoFix animation-direction reftest
Matthias Clasen [Sun, 10 Aug 2014 14:55:03 +0000 (10:55 -0400)]
Fix animation-direction reftest

This was another victim of clipping changes - the labels were
overdrawing each other, leading to test failure. Prevent this
by separating the grid columns.

11 years agowayland: Remove overly complex cursor cache
Jasper St. Pierre [Sun, 10 Aug 2014 16:15:40 +0000 (12:15 -0400)]
wayland: Remove overly complex cursor cache

11 years agoGtkToolbar: Set clip
Matthias Clasen [Sun, 10 Aug 2014 11:53:59 +0000 (07:53 -0400)]
GtkToolbar: Set clip

This allows outset box shadows to work on toolbars.

https://bugzilla.gnome.org/show_bug.cgi?id=734526

11 years agoreftests: Make textview-margins pass in make check
Matthias Clasen [Sun, 10 Aug 2014 11:41:53 +0000 (07:41 -0400)]
reftests: Make textview-margins pass in make check

I found that setting margins to zero makes the textview clip
away some overshooting pixels. So, instead of a 0/10 split,
do this test with a 2/8 split of margins, to avoid the clipping
issue.

11 years agoSkip focus tests in make check
Matthias Clasen [Sun, 10 Aug 2014 11:08:39 +0000 (07:08 -0400)]
Skip focus tests in make check

These require a window manager to work, and we currently don't
run one when we run make check tests under Xvfb.

11 years agoAvoid "pkg-config --atleast-version"
Simon McVittie [Sat, 9 Aug 2014 14:17:44 +0000 (15:17 +0100)]
Avoid "pkg-config --atleast-version"

AM_PATH_GTK_3_0([3.4], [], [], [gthread]) results in calling
"pkg-config --atleast-version 3.4 gtk+-3.0 gthread-2.0".

With pkg-config 0.28, that test fails, because the version of
gthread-2.0 is smaller than 3.4. This appears to be a behaviour
change since 0.26, but matches what the documentation said in 0.26.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=641638
Bug-Debian: https://bugs.debian.org/756476
Reviewed-by: Matthias Clasen <mclasen@redhat.com>
11 years agoUpdates for 3.13.6
Matthias Clasen [Sat, 9 Aug 2014 11:13:27 +0000 (13:13 +0200)]
Updates for 3.13.6

11 years agoTrivial: Use g_clear_object more
Matthias Clasen [Sat, 9 Aug 2014 08:13:55 +0000 (10:13 +0200)]
Trivial: Use g_clear_object more

It no longer has atomic overhead, so we can use it everywhere.

11 years agoAdwaita: GtkSwitch size reduction and tweaks
Lapo Calamandrei [Fri, 8 Aug 2014 21:31:33 +0000 (23:31 +0200)]
Adwaita: GtkSwitch size reduction and tweaks

See https://bugzilla.gnome.org/show_bug.cgi?id=734485

11 years agoOnly show title button separator when there is something to separate
Nikita Churaev [Tue, 6 May 2014 10:44:33 +0000 (14:44 +0400)]
Only show title button separator when there is something to separate

https://bugzilla.gnome.org/show_bug.cgi?id=729636

11 years agoRevert "Adwaita: comment out the header-bar separator"
Matthias Clasen [Fri, 8 Aug 2014 20:35:48 +0000 (22:35 +0200)]
Revert "Adwaita: comment out the header-bar separator"

This reverts commit b4e7ada6ac52b9930ba8d14a5f4d5d3a009cf163.

11 years agoMake focus tests session-exclusive
Matthias Clasen [Fri, 8 Aug 2014 20:15:02 +0000 (22:15 +0200)]
Make focus tests session-exclusive

Otherwise, tests running in parallel will steal the focus that
we are trying to test.

11 years agoAdd a selection mode testcase
Matthias Clasen [Fri, 8 Aug 2014 11:28:27 +0000 (13:28 +0200)]
Add a selection mode testcase

This shows what one currently has to do manually to get the typical
selection mode with blue headerbar and checkboxes in list rows.
The goal is to make this easier.

11 years agoAdwaita: pushed button shadows tweakings
Lapo Calamandrei [Fri, 8 Aug 2014 08:11:11 +0000 (10:11 +0200)]
Adwaita: pushed button shadows tweakings

11 years agoHandle ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET
Руслан Ижбулатов [Wed, 6 Aug 2014 10:33:47 +0000 (10:33 +0000)]
Handle ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET

https://bugzilla.gnome.org/show_bug.cgi?id=733773

11 years agoMSVC Build Files: Use Real GTK+ Version
Chun-wei Fan [Thu, 7 Aug 2014 15:11:34 +0000 (23:11 +0800)]
MSVC Build Files: Use Real GTK+ Version

Make the Visual C++-related build files contain the actual GTK+ version, by
generating them during the configure stage and dist'ing them in the release
tarballs.  This is especially important for builds of introspection files,
as one may need to look at the release version of GTK+ in those files.

11 years agoMSVC Builds: Apply Visual Style for Win32 Print Dialog
Chun-wei Fan [Thu, 7 Aug 2014 15:02:13 +0000 (23:02 +0800)]
MSVC Builds: Apply Visual Style for Win32 Print Dialog

Define ISOLATION_AWARE_ENABLED for the build of the GTK DLL so that visual
style can be applied to the Windows print dialog for all applications using
gtkprintoperation.

Update the script for the generation of gtk-win32.rc for MSVC to not try to
embed the manifest from it (but embed libgtk3.manifest by including it in
the project files, as we are now doing), and embedding the manifest file is
really not supported in MSVC 2010 and later.

Also fix up formatting in the GTK DLL projects.

https://bugzilla.gnome.org/show_bug.cgi?id=733773

11 years agoAdwaita: progressbar background in scale highlight
Lapo Calamandrei [Thu, 7 Aug 2014 12:17:50 +0000 (14:17 +0200)]
Adwaita: progressbar background in scale highlight

11 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Thu, 7 Aug 2014 11:46:40 +0000 (13:46 +0200)]
Updated Basque language

11 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Thu, 7 Aug 2014 11:43:15 +0000 (13:43 +0200)]
Updated Basque language